package org.budo.ip.location.service.wrapper;

import org.budo.ip.location.service.api.BudoIpLocation;
import org.budo.ip.location.service.api.BudoIpLocationService;

import lombok.Getter;
import lombok.Setter;

/**
 * @author lmw
 */
@Getter
@Setter
public class BudoIpLocationServiceWrapper implements BudoIpLocationService {
    private BudoIpLocationService budoIpLocationService;

    @Override
    public BudoIpLocation seekIpLocation(String ip) {
        BudoIpLocationService service = this.getBudoIpLocationService();
        return service.seekIpLocation(ip);
    }

    @Override
    public BudoIpLocation[] seekIpLocationArray(String[] ipArray) {
        BudoIpLocationService service = this.getBudoIpLocationService();
        return service.seekIpLocationArray(ipArray);
    }
}